{include file="public/header" /}
<link rel="stylesheet" type="text/css" href="__STATIC__/index/css/article_detail.css"/>
<div class="w_container">
    <div class="container">
        <div class="row w_main_row">

            <ol class="breadcrumb w_breadcrumb">
                <li><a href="{:url('index/index')}">首页</a></li>
                <li><a href="#">文章</a></li>
                <li class="active">{$article.title}</li>
                <span class="w_navbar_tip">我们长路漫漫，只因学无止境。</span>
            </ol>

            <div class="col-lg-9 col-md-9 w_main_left">
                <div class="panel panel-default">
                    <div class="panel-body">
                        <h2 class="c_titile">{$article.title}</h2>
                        <p class="box_c"><span class="d_time">发布时间：{$article.create_time|date="Y-m-d H:i", ###}</span><span>编辑：<a href="mailto:wfyv@qq.com">{$article.username}</a></span><span>阅读（{$article.reading}）</span></p>
                        <ul class="infos">

                            {:htmlspecialchars_decode($article.content)}

                        </ul>

                        <div class="keybq">
                            <p><span>关键字</span>：

                                {volist name="$article.key" id="vo" }
                                    <a class="label label-default">{$vo}</a>
                                {/volist}
                            </p>
                        </div>



                        <div class="nextinfo">
                            {if condition="$article.pre_next.pre_title eq ''"}
                            <p class="last">上一篇：<a href="#">已经是第一篇了</a></p>
                            {else /}
                            <p class="last">上一篇：<a href="{:url("article/detail",['id' => $article.pre_next.pre_id])}">{$article.pre_next.pre_title}</a></p>
                            {/if}
                            {if condition="$article.pre_next.next_title eq ''"}
                            <p class="next">下一篇：<a href="#">已经是最后一篇了</a></p>
                            {else /}
                            <p class="next">下一篇：<a href="{:url("article/detail",['id' => $article.pre_next.next_id])}">{$article.pre_next.next_title}</a></p>
                            {/if}
                        </div>

                    </div>
                </div>

                <div class="panel panel-default">
                    <div class="panel-body">
                        <center><div id="cyReward" role="cylabs" data-use="reward" sid="5eab7e4c363e4cb8bed0efa3604e6b42"></div></center>
                        <!--<div id="cyEmoji" role="cylabs" data-use="emoji" sid="5eab7e4c363e4cb8bed0efa3604e6b42"></div>-->
                        <script type="text/javascript" charset="utf-8" src="https://changyan.itc.cn/js/lib/jquery.js"></script>
                        <script type="text/javascript" charset="utf-8" src="https://changyan.sohu.com/js/changyan.labs.https.js?appid=cyufS7cMV"></script>


                        <!-- 多说评论框 start -->
                        <!-- 多说评论框 end -->
                        <!-- 多说公共JS代码 start (一个网页只需插入一次) -->
                        <script type="text/javascript">
                            var duoshuoQuery = {short_name:"wfyvv"};
                            (function() {
                                var ds = document.createElement('script');
                                ds.type = 'text/javascript';ds.async = true;
                                ds.charset = 'UTF-8';
                                (document.getElementsByTagName('head')[0]
                                    || document.getElementsByTagName('body')[0]).appendChild(ds);
                            })();
                        </script>
                        <!-- 多说公共JS代码 end -->

                    </div>
                </div>
            </div>
            <div class="col-lg-3 col-md-3 w_main_right">

                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">最新发布</h3>
                    </div>
                    <div class="panel-body">
                        <ul class="list-unstyled sidebar">
                            {volist name='articles' id='vo'}
                            <li>
                                <a href="{:url('article/detail',['id'=>$vo.id])}">{$vo.title}</a>
                            </li>
                            {/volist}
                        </ul>
                    </div>
                </div>

                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">友情链接</h3>
                    </div>
                    <div class="panel-body">
                        <div class="newContent">
                            <ul class="list-unstyled sidebar shiplink">
                                <li>
                                    <a href="http://www.thinkphp.cn/" target="_blank">thinkPHP框架</a>
                                </li>
                                <li>
                                    <a href="http://www.h-ui.net/" target="_blank">H-ui</a>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>


        </div>
    </div>
</div>
{include file="public/footer" /}